﻿{include file="header.tpl"}

<div id="block_featured" class="block">
	<img src="images/theme/ribbon.png" class="ribbon"/>
	<span class="ribbon_text">{$title}</span>
    <div class="block_inside">
	
	{$info_action}
	
	<div class="user_panel">
		<ul class="tabs">
			<li><a href="#tab1">Praktyka</a></li>
			<li><a href="#tab2">Moje dane</a></li>
		</ul>

		<div class="tab_container">
			<div id="tab1" class="tab_content">
			
			{$info_practice}
			
			{if isset($practiceDetails)}
				{foreach item=p from=$practice}{/foreach}
				{foreach item=c from=$company} {/foreach}
				{foreach item=pe from=$person} {/foreach}
				<div class="clear"></div>
								<div class="grid_5">
									<h1>Szczegóły praktyki</h1>
										<table id="table_data">
											<tr>
												<td><label for="add_date">Data dodania</label></td>
												<td>{$p.add_date}</td>
											</tr>
											<tr>
												<td><label>Od dnia</label></td>
												<td>{$p.date_start}</td>
											</tr>
											<tr>
												<td><label>Do dnia</label></td>
												<td>{$p.date_end}</td>
											</tr>
											<tr>
												<td><label>Praktyka płatna</label></td>
												<td>{if $p.paid == 1 }TAK {else} NIE {/if}</td>
											</tr>
											<tr>
												<td><label>Zakres obowiązków</label></td>
												<td>{$p.duties}</td>
											</tr>
											<tr>
												<td><label>Wymagania</label></td>
												<td>{$p.requirements}</td>
											</tr>
											<tr >
												<td><label>Technologie</label></td>
												<td>{$p.technology}</td>
											</tr>
										</table>
								</div>
								<div class="grid_5">
									<h1>Dane firmy</h1>
										<table id="table_data">
											<tr>
												<td><label>Nazwa</label></td>
												<td>{$c.name}</td>
											</tr>
											<tr>
												<td><label>Adres</label></td>
												<td>{$c.address}</td>
											</tr>
											<tr>
												<td><label>Telefon</label></td>
												<td>{$c.phone}</td>
											</tr>
											<tr>
												<td><label>Strona www</label></td>
												<td>{$c.site}</td>
											</tr>
											<tr>
												<td><label>Email</label></td>
												<td>{$c.email}</td>
											</tr>
										</table>	
									<h1>Osoba reprezentująca firmę</h1>
									<table id="table_data">
											<tr>
												<td><label>Imię</label></td>
												<td>{$pe.name}</td>
											</tr>
											<tr>
												<td><label>Nazwisko</label></td>
												<td>{$pe.surname}</td>
											</tr>
											<tr>
												<td><label>Stanowisko</label></td>
												<td>{$pe.position}</td>
											</tr>
											<tr>
												<td><label>Telefon</label></td>
												<td>{$pe.phone}</td>
											</tr>

											<tr>
												<td><label>Email</label></td>
												<td>{$pe.email}</td>
											</tr>
										</table>	
								</div>
								<div class="clear"></div>
				{/if}
			
			</div>
			<div id="tab2" class="tab_content">
								<h1>Moje dane</h1>
							{foreach item = student from=$smarty.session.student_info}{/foreach}
								<table id="table_data">
									<tr>
										<td><label>Imię</label></td>
										<td>{$student.name}</td>
									</tr>
									<tr>
										<td><label>Nazwisko</label></td>
										<td>{$student.surname}</td>
									</tr>
									<tr>
										<td><label>Email</label></td>
										<td>{$student.email}</td>
									</tr>
									<tr>
										<td><label>Numer albumu</label></td>
										<td>{$student.album_nr}</td>
									</tr>
									<tr>
										<td><label>Wydział</label></td>
										<td>{$faculty}</td>
									</tr>
									<tr>
										<td><label>Kierunek</label></td>
										<td>{$specialization}</td>
									</tr>	
								</table>
			</div>
		</div>
	</div>
</div>
</div>
{include file="footer.tpl"}